module ModelSchemaInfo
  require 'model_schema_info/collector'
  require 'model_schema_info/console'

  class << self
    def exec(options={})
      collector = ModelSchemaInfo::Collector.new(model_names: options[:model_names])
      collector.search_all_models

      console = ModelSchemaInfo::Console.new

      collector.results.each do |result|
        console.show(result)
      end
    end
  end

end
